package com.jiangjiang.eshop.order.convert;

import com.jiangjiang.eshop.order.domain.OrderItemEntity;
import com.jiangjiang.eshop.order.dto.OrderItemDTO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @ClassName OrderItemConvert
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/24 11:55
 * @Version 1.0
 **/
@Mapper(componentModel = "spring")
public interface OrderItemConvert {

    List<OrderItemEntity> convertDTOList2Entities(List<OrderItemDTO> dtoList);

    List<OrderItemDTO> entities2DTOList(List<OrderItemEntity> list);
}
